package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysUserIpbind;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysUserIpbindProxy extends AbstractProxyEntity<SysUserIpbindProxy, SysUserIpbind> {

    private static final Class<SysUserIpbind> entityClass = SysUserIpbind.class;

    public static final SysUserIpbindProxy TABLE = createTable().createEmpty();

    public static SysUserIpbindProxy createTable() {
        return new SysUserIpbindProxy();
    }

    public SysUserIpbindProxy() {
    }

    /**
     * 记录ID,随机GUID
     * {@link SysUserIpbind#getId}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> id() {
        return getStringTypeColumn("id");
    }

    /**
     * 用户登录唯一标识
     * {@link SysUserIpbind#getUserId}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> userId() {
        return getStringTypeColumn("userId");
    }

    /**
     * 用户IP地址
     * {@link SysUserIpbind#getIp}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> ip() {
        return getStringTypeColumn("ip");
    }

    /**
     * 0表示未启用;1表示启用
     * {@link SysUserIpbind#getActive}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> active() {
        return getStringTypeColumn("active");
    }

    /**
     * 操作的用户中文名称
     * {@link SysUserIpbind#getOpUser}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> opUser() {
        return getStringTypeColumn("opUser");
    }

    /**
     * 操作日期
     * {@link SysUserIpbind#getOpDate}
     */
    public SQLLocalDateTimeTypeColumn<SysUserIpbindProxy> opDate() {
        return getLocalDateTimeTypeColumn("opDate");
    }

    /**
     * 备注
     * {@link SysUserIpbind#getRemarks}
     */
    public SQLStringTypeColumn<SysUserIpbindProxy> remarks() {
        return getStringTypeColumn("remarks");
    }

    @Override
    public Class<SysUserIpbind> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysUserIpbindProxyFetcher FETCHER = new SysUserIpbindProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysUserIpbindProxyFetcher extends AbstractFetcher<SysUserIpbindProxy, SysUserIpbind, SysUserIpbindProxyFetcher> {

        public SysUserIpbindProxyFetcher(SysUserIpbindProxy proxy, SysUserIpbindProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 记录ID,随机GUID
         * {@link SysUserIpbind#getId}
         */
        public SysUserIpbindProxyFetcher id() {
            return add(getProxy().id());
        }

        /**
         * 用户登录唯一标识
         * {@link SysUserIpbind#getUserId}
         */
        public SysUserIpbindProxyFetcher userId() {
            return add(getProxy().userId());
        }

        /**
         * 用户IP地址
         * {@link SysUserIpbind#getIp}
         */
        public SysUserIpbindProxyFetcher ip() {
            return add(getProxy().ip());
        }

        /**
         * 0表示未启用;1表示启用
         * {@link SysUserIpbind#getActive}
         */
        public SysUserIpbindProxyFetcher active() {
            return add(getProxy().active());
        }

        /**
         * 操作的用户中文名称
         * {@link SysUserIpbind#getOpUser}
         */
        public SysUserIpbindProxyFetcher opUser() {
            return add(getProxy().opUser());
        }

        /**
         * 操作日期
         * {@link SysUserIpbind#getOpDate}
         */
        public SysUserIpbindProxyFetcher opDate() {
            return add(getProxy().opDate());
        }

        /**
         * 备注
         * {@link SysUserIpbind#getRemarks}
         */
        public SysUserIpbindProxyFetcher remarks() {
            return add(getProxy().remarks());
        }

        @Override
        protected SysUserIpbindProxyFetcher createFetcher(SysUserIpbindProxy cp, AbstractFetcher<SysUserIpbindProxy, SysUserIpbind, SysUserIpbindProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysUserIpbindProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
